import request from '@/utils/axios';
import {LocationQueryValue} from "vue-router";

interface IResponseType<P = {}> {
    code?: number;
    msg: string;
    data: P;
}

// @ts-ignore
export const list = (courseId: number)=>{
    return request<IResponseType>({
        url: '/courseDirectories/tree',
        method: 'get',
        params: {courseId : courseId},
    });
}

export default { list };